<script setup>
import {ref} from "vue";

let num = ref(5)
</script>

<template>
  <ul>
    <!--  渲染范围：从 1 到 number，闭区间  -->
    <li v-for="key in num">{{ key }}</li>
  </ul>
</template>

<style scoped>

</style>